package com.example.demo.service;


import java.util.List;
import java.util.Set;

import com.example.demo.entity.User;
import com.example.demo.entity.UserAndRole;

public interface UserService {

    public User createUser(User user);
	
	public int deleteUser(String id);
	
	public int correlateRoles(List<UserAndRole> userAndRoleList);
	
	public int uncorrelateRoles(UserAndRole userAndRole);
	
	public User findOne(String id);
	
	public User findUserByUsername(String username);
	
	public Set<String> findRoles(String username);
	
	public Set<String> findPermissions(String username);
	
	public int deleteUserTable();
	
	public void changePassword(User user);
}
